package com.sanxiau.dormitory.yang.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Dorout {
    private int id;
    private String hou_id;
    private String dor_id;
    private String out_sf;
    private int out_nub;
    private String out_why;
    private String watch;
    private Date out_date;
    private Date check_start;
    private Date check_end;
    private String out_des;

    public Dorout() {
    }

    public Dorout(int id, String hou_id, String dor_id, String out_sf, int out_nub, String out_why, String watch, Date out_date, Date check_start, Date check_end, String out_des) {
        this.id = id;
        this.hou_id = hou_id;
        this.dor_id = dor_id;
        this.out_sf = out_sf;
        this.out_nub = out_nub;
        this.out_why = out_why;
        this.watch = watch;
        this.out_date = out_date;
        this.check_start = check_start;
        this.check_end = check_end;
        this.out_des = out_des;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getHou_id() {
        return hou_id;
    }

    public void setHou_id(String hou_id) {
        this.hou_id = hou_id;
    }

    public String getDor_id() {
        return dor_id;
    }

    public void setDor_id(String dor_id) {
        this.dor_id = dor_id;
    }

    public String getOut_sf() {
        return out_sf;
    }

    public void setOut_sf(String out_sf) {
        this.out_sf = out_sf;
    }

    public int getOut_nub() {
        return out_nub;
    }

    public void setOut_nub(int out_nub) {
        this.out_nub = out_nub;
    }

    public String getOut_why() {
        return out_why;
    }

    public void setOut_why(String out_why) {
        this.out_why = out_why;
    }

    public String getWatch() {
        return watch;
    }

    public void setWatch(String watch) {
        this.watch = watch;
    }
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    public Date getOut_date() {
        return out_date;
    }
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    public void setOut_date(Date out_date) {
        this.out_date = out_date;
    }
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    public Date getCheck_start() {
        return check_start;
    }
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    public void setCheck_start(Date check_start) {
        this.check_start = check_start;
    }
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    public Date getCheck_end() {
        return check_end;
    }
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    public void setCheck_end(Date check_end) {
        this.check_end = check_end;
    }

    public String getOut_des() {
        return out_des;
    }

    public void setOut_des(String out_des) {
        this.out_des = out_des;
    }

    @Override
    public String toString() {
        return "Dorout{" +
                "id=" + id +
                ", hou_id='" + hou_id + '\'' +
                ", dor_id='" + dor_id + '\'' +
                ", out_sf='" + out_sf + '\'' +
                ", out_nub=" + out_nub +
                ", out_why='" + out_why + '\'' +
                ", watch='" + watch + '\'' +
                ", out_date=" + out_date +
                ", check_start=" + check_start +
                ", check_end=" + check_end +
                ", out_des='" + out_des + '\'' +
                '}';
    }
}
